package linkLine

type SingleNode struct {
	Value int32
	Next  *SingleNode
}

func (e *SingleNode) SetNext(se *SingleNode) {
	if e.Next == nil {
		e.Next = se
	} else {
		e.Next.SetNext(se)
	}
}

func FastSingleNode(value int32) *SingleNode {
	return &SingleNode{Value: value}
}
